package payroll;

import com.example.Employee;
import com.example.classification.HourlyClassification;
import com.example.trans.ChangeEmployeeTransaction;


public class ChangeHourlyTransaction extends ChangeEmployeeTransaction{
    private double hourlyRate;

    public ChangeHourlyTransaction(int empId, double hourlyRate) {
        super(empId);
        this.hourlyRate = hourlyRate;
    }
    protected  void doChange(Employee e){
        e.setPaymentClassification(new HourlyClassification(hourlyRate));
    }
   

}
